package com.deepgames.mud.core;

/**
 * Set of system status codes for internal use.
 * 
 * @author Zack Hoffmann
 * @version 0.1
 *
 */
public class InternalCode {
	
	/************************************************************************
	 * GENERIC CODES														*
	 ************************************************************************/
	
	public static final int FAILURE 			= 0;
	public static final int SUCCESS 			= 1;

	/************************************************************************
	 * TRANSMISSION CODES													*
	 ************************************************************************/
	/**
	 *  Message may not have been delivered.
	 */
	public static final int TRANS_UNCERTAIN		= 100;
	/**
	 *  Message send timed out.
	 */
	public static final int TRANS_TIMEOUT		= 101;
	/**
	 *  Message may have been delayed or stalled.
	 */
	public static final int	TRANS_WARNING		= 102;

	/************************************************************************
	 * ACTION CODES													*
	 ************************************************************************/
	/**
	 * Provided source ID does not have permission to execute the action.
	 */
	public static final int ACT_NO_PERM			= 200;
	
	/************************************************************************
	 * GOBJECT EXTRACTOR CODES												*
	 ************************************************************************/
	/**
	 * Gobject is not set to be written.
	 */
	public static final int GOB_NOWRITE			= 300;
	/**
	 * The database connection has failed.
	 */
	public static final int GOB_CON_FAIL		= 301;
	/**
	 * A database query has failed.
	 */
	public static final int GOB_SQL_FAIL		= 302;
	/**
	 * A database update has failed.
	 */
	public static final int GOB_DDL_FAIL		= 303;
}
